import requests

from com.yh.oa.utils.utils import oa_host


#创建user类

class User:
    def login(self,username,password):

        users = {
        "username":username,
        "password":password
        }
        res = requests.post(oa_host+"/login/noCode",json=users)
        return res
